home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
- <background>
- <id>2619</id>
- <filler1>0</filler1>
- <bitmap>BMAP_3275.pbm</bitmap>
- <cantDelete> <false /> </cantDelete>
- <showPict> <true /> </showPict>
- <dontSearch> <false /> </dontSearch>
- <link rel="stylesheet" type="text/css" href="stylesheet_2099.css" />
- <part>
- <id>9</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>141</left>
- <top>266</top>
- <right>167</right>
- <bottom>289</bottom>
- </rect>
- <style>transparent</style>
- <showName> <false /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>1014</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Prev</name>
- <script>on mouseUp
- visual effect wipe left
- go to prev card
- end mouseUp
- </script>
- </part>
- <part>
- <id>8</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>192</left>
- <top>266</top>
- <right>217</right>
- <bottom>289</bottom>
- </rect>
- <style>transparent</style>
- <showName> <false /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>1013</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Next</name>
- <script>on mouseUp
- visual effect wipe right
- go to next card
- end mouseUp
- </script>
- </part>
- <part>
- <id>17</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>40</left>
- <top>49</top>
- <right>128</right>
- <bottom>68</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font></font>
- <textSize>12</textSize>
- <textStyle>bold</textStyle>
- <textHeight>16</textHeight>
- <name>Call</name>
- <script></script>
- </part>
- <part>
- <id>26</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>248</left>
- <top>50</top>
- <right>297</right>
- <bottom>69</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font></font>
- <textSize>12</textSize>
- <textStyle>bold</textStyle>
- <textHeight>16</textHeight>
- <name>call district</name>
- <script></script>
- </part>
- <part>
- <id>38</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>45</left>
- <top>71</top>
- <right>337</right>
- <bottom>90</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>name</name>
- <script></script>
- </part>
- <part>
- <id>21</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>61</left>
- <top>94</top>
- <right>354</right>
- <bottom>112</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>address</name>
- <script></script>
- </part>
- <part>
- <id>22</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>42</left>
- <top>118</top>
- <right>192</right>
- <bottom>138</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>city</name>
- <script></script>
- </part>
- <part>
- <id>23</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>250</left>
- <top>118</top>
- <right>352</right>
- <bottom>138</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>postcode</name>
- <script></script>
- </part>
- <part>
- <id>25</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>106</left>
- <top>159</top>
- <right>232</right>
- <bottom>176</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>Telephone1</name>
- <script></script>
- </part>
- <part>
- <id>31</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>255</left>
- <top>235</top>
- <right>341</right>
- <bottom>257</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Sort by Call</name>
- <script>on mouseUp
- sort by field "call"
- end mouseUp
- </script>
- </part>
- <part>
- <id>32</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>154</left>
- <top>235</top>
- <right>251</right>
- <bottom>257</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Sort by Name</name>
- <script>on mouseUp
- sort by last word of field "name"
- end mouseUp
- </script>
- </part>
- <part>
- <id>33</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>296</left>
- <top>294</top>
- <right>401</right>
- <bottom>316</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <false /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Export Labels</name>
- <script>on mouseUp
- sort by field "name"
- sort by field "country"
- get shortname of this stack
- put it & " labels" into fileName
- ask "Export text to what file?" with fileName
- if it is empty then exit mouseUp
- put it into fileName
- open file fileName
- write "Name" & tab & "Address" & tab & "City" & tab "postcode" & tab country" & return¬
- to file fileName
- go to first card
- repeat for the number of cards
- write quote & field "name" & ", " & field call & quote & tab¬
- & field "address" & tab & quote & field "city" & ", "¬
- & field "postcode" & space & field country & quote¬
- & field "postcode" & return to file fileName
- go to next card
- end repeat
- close file fileName
- end mouseUp
- </script>
- </part>
- <part>
- <id>34</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>106</left>
- <top>181</top>
- <right>232</right>
- <bottom>198</bottom>
- </rect>
- <style>transparent</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>Telephone2</name>
- <script></script>
- </part>
- <part>
- <id>27</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>361</left>
- <top>69</top>
- <right>487</right>
- <bottom>287</bottom>
- </rect>
- <style>scrolling</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <true /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>10</textSize>
- <textStyle>plain</textStyle>
- <textHeight>13</textHeight>
- <name>member data</name>
- <script></script>
- </part>
- <part>
- <id>35</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>294</left>
- <top>209</top>
- <right>341</right>
- <bottom>230</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Find</name>
- <script>on mouseUp
- doMenu "Find..."
- set the loc of message to 6,315
- end mouseUp
- </script>
- </part>
- <part>
- <id>36</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>210</left>
- <top>209</top>
- <right>290</right>
- <bottom>230</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>New Entry</name>
- <script>on mouseUp
- visual effect wipe left
- go last card
- visual effect scroll left
- doMenu "New Card"
- tabKey
- end mouseUp
- </script>
- </part>
- <part>
- <id>42</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>95</left>
- <top>294</top>
- <right>197</right>
- <bottom>316</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <false /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Packet Export</name>
- <script>on mouseUp
- set cursor to 4
- put the short name of this stack & ".packet" into fileName
- ask "Export text to what file?" with fileName
- if it is empty then exit mouseUp
- put it into fileName
- open file fileName
- go to first card
- repeat for the number of cards
- put field "call" into kall
- if kall is empty or kall is "none" then
- put space & space & space & space & space & space into kall -- 6 chars for no call
- end if
- if the charToNum of second char of kall >= 48 and second char of kall <= 57 then
- put space after second char of kall
- put space before first char of kall
- else
- put space after third char of kall
- end if
- if length of kall is 5 then
- put space & space after kall --temporary 7 chars for kall
- end if
- if length of kall is 6 then
- put space & space & space after kall --9 chars for kall
- else
- put space & space after kall --9 chars for kall and no call
- end if
- write kall to file fileName
- put field "name" into name
- put 1 into temp
- repeat until temp is 0
- get length of name
- put 22 - it into temp -- 22 chars for name, 31 so far
- put space after name
- end repeat
- write name to file fileName
- put field "city" & ", " & field "postcode" into qth
- put 1 into temp
- repeat until temp is 0
- get length of qth
- put 23 - it into temp -- 23 chars for qth, 54 so far
- put space after qth
- end repeat
- write qth to file fileName
- put field "telephone1" into phone
- put 1 into temp
- repeat until temp is 0
- get length of phone
- put 14 - it into temp -- 14 chars for phone, 68 so far
- put space after phone
- end repeat
- write phone to file fileName
- put field "BBS" into bbs -- 6 chars for BBS, 74 total
- if bbs is not empty then put "@" before bbs
- write bbs & return to file fileName
- go to next card
- end repeat
- close file fileName
- set cursor to 1
- end mouseUp
-
-
-
-
-
-
- --Call
- --call district
- --name
- --address
- --city
- --postcode
- --country
- --telephone home
- --telephone work
- --member data
- --MemberP
-
-
- </script>
- </part>
- <part>
- <id>43</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <true /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>276</left>
- <top>180</top>
- <right>354</right>
- <bottom>197</bottom>
- </rect>
- <style>rectangle</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Geneva</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <textHeight>16</textHeight>
- <name>BBS</name>
- <script></script>
- </part>
- <part>
- <id>45</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>11</left>
- <top>294</top>
- <right>92</right>
- <bottom>316</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <false /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Field fixer</name>
- <script>--because the import script encountering an empty field sometimes lets
- --an invisible tab or return character slip into the hc field, or the
- --user accidentally puts a return character into a text field,
- --when the hc database is exported it is all screwed up! So, this script
- --fixes up the hc database for export.
-
- on mouseUp
- set cursor to 4
- put the name of this bkgnd into bakground
- go to first card of bkgnd bakground
- repeat for the number of cards
- get the name of this bkgnd
- if it is not bakground then exit repeat
- repeat with i = 1 to the number of fields
- get last char of field i
- if it is tab then put empty into last char of field i
- repeat while last char of field i is return
- get last char of field i
- if it is return then
- put empty into last char of field i
- end if
- end repeat
- repeat while offset(return,field i) is not 0
- get offset(return,field i)
- put space & "*" & space into char it of field i
- end repeat
- end repeat
- go next card
- end repeat
- end mouseUp</script>
- </part>
- <part>
- <id>46</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>199</left>
- <top>294</top>
- <right>292</right>
- <bottom>316</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <false /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Export Data</name>
- <script>on mouseUp
- put the short name of this stack & ".text" into fileName
- ask "Export text to what file?" with fileName
- if it is empty then exit mouseUp
- put it into fileName
- open file fileName
- set cursor to 4
- put the name of this bkgnd into bakground
- go to first card of bkgnd bakground
- repeat for the number of cards
- get the name of this bkgnd
- if it is not bakground then exit repeat
- repeat with i = 1 to the number of fields
- write field i & tab to file fileName
- end repeat
- write return to file fileName
- go to next card
- end repeat
- close file fileName
- set cursor to 1
- end mouseUp
- </script>
- </part>
- <part>
- <id>47</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>406</left>
- <top>294</top>
- <right>495</right>
- <bottom>316</bottom>
- </rect>
- <style>shadow</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <false /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Import Data</name>
- <script>--to use this button, prepare at least as many HC background fields
- --as fields separated by tabs of your text data file
- -- by Ted Tripp, 4588 CR 523, Bayfield, CO 81122, 303-884-9029
- on mouseUp
- ask "Import text from which file?"
- if it is empty then exit mouseUp
- put it into fileName
- open file fileName
- set cursor to 4
- repeat
- read from file fileName until return -- get first record
- if it is empty then
- doMenu "Delete Card"
- close file fileName
- exit mouseUp
- end if
- put it into data
- repeat with i = 1 to the number of fields
- put offset(tab,data) into num --gets first field (until tab)
- if num is 0 then -- last field of record has no tab
- put data into field i -- writes last field
- delete last char of field i -- deletes return char
- if first char of field i is quote¬
- and last char of field i is quote then --deletes quote marks
- delete first char of field i
- delete last char of field i
- end if
- exit repeat -- stops
- end if
- put char 1 to (num - 1) of data into field i -- writes first field
- repeat while last char of field i is tab -- pesky ASCII 9!
- delete last char of field i
- end repeat
- if first char of field i is quote¬
- and last char of field i is quote then --deletes quote marks
- delete first char of field i
- delete last char of field i
- end if
- delete char 1 to num of data -- gets rid of field
- end repeat
- doMenu "New Card"
- end repeat
- close file fileName
- set cursor to 1
- end mouseUp
- </script>
- </part>
- <part>
- <id>48</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>27</left>
- <top>234</top>
- <right>72</right>
- <bottom>262</bottom>
- </rect>
- <style>transparent</style>
- <showName> <false /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <false /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>0</titleWidth>
- <icon>9172</icon>
- <textAlign>center</textAlign>
- <font>Chicago</font>
- <textSize>12</textSize>
- <textStyle>plain</textStyle>
- <name>Back to Radio</name>
- <script>on mouseUp
- visual effect iris close
- go to stack "Radio"
- end mouseUp
- </script>
- </part>
- <name></name>
- <script>on import
- repeat for the number of cards
- get field "first name"
- if it is not empty then
- put it into field "name"
- put space after field "name"
- end if
- get field "last name"
- if it is not empty then
- put it after field "name"
- end if
- go to next card
- end repeat
- end import
- </script>
- </background>
-